
import request from '@/utils/request';
export interface TreeHoleList {
    className?: string;
    pageNum?: string;
    pageSize?: string;
    studentId?: string;
    studentName?: string;
    title?: string;
    [property: string]: any;
}

//查看树洞列表
export function getTreeHoleList(pageNum,pageSize) {
    return request({
        url: `/treeHole/hole/list?pageNum=${pageNum}&pageSize=${pageSize}`,
        method: 'get'
    })
}


export interface checkTreeHoleList {
    id: number;
    [property: string]: any;
}
// 查看内容详情
export function checkTreeHoleList(id: checkTreeHoleList) {
    return request({
        url:`/treeHole/hole/details/${id}`,
        method:'get'
    })
}

// 搜索树洞
export function serachTreeHole(data: TreeHoleList) {
    return request({
        url: '/treeHole/hole/list',
        method: 'get',
        params: data
    })
}
